<template>
	<view>
		<view class="z-padding-32"><rich-text :nodes="info"></rich-text></view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			id: '',
			info: ''
		};
	},
	onLoad(options) {
		console.log(options)
		this.id = options.id
		this.getInfo()
		uni.setNavigationBarTitle({
			title: options.name || '详情'
		});
	},
	methods: {
		getInfo() {
			this.http.get('index/gettext', {
				id: this.id
			}).then((res) => {
				this.info = res.data.content
			});
		}
	}
};
</script>

<style>
page {
	background: #fff;
}
</style>
